@layout("/common/_container.html",{js:["/assets/basic/archiveBox/archiveBox.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">档案盒信息表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form lay-filter="searchForm" id="archiveBoxSearchForm" class="layui-form toolbar">
                        <input type="hidden" id="ssdasid" name="ssdasid"/>
                        <input type="hidden" id="ssdagid" name="ssdagid"/>
                        <input type="hidden" id="ssdagcid" name="ssdagcid"/>
                        <div class="layui-form-item layui-row layui-col-space5">
                            <div class="layui-col-sm1 layui-col-lg1">
                                <input name="mc" class="layui-input" type="text" placeholder="名称"/>
                            </div>
                            <div class="layui-col-sm1 layui-col-lg1">
                                <input name="bh" class="layui-input" type="text" placeholder="编号"/>
                            </div>
                            <div class="layui-col-sm2 layui-col-lg2">
                                <#tree name="ssdagcDag" url="/archiveDic/archiveLayer" tips="选择档案位置"/>
                            </div>
                            <div class="layui-col-sm2 layui-col-lg2">
                                <#dic name="sl" dic="YESNO" tips="是否装满"/>
                            </div>

                            <div class="layui-col-sm2 layui-col-lg2">
                                <#tree tips="所属部门" name="ssbmid" url="/archiveDic/commonTree?table=sys_dept&id=dept_id&parentId=pid&startId=0&text=full_name"/>
                            </div>
                            <div class="layui-col-sm4 layui-col-lg4">
                                <#reset id="archiveBoxSearchForm"/>
                                <button lay-filter="btnSearch" lay-submit class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>

                                @if(shiro.hasPermission("/archiveBox/add")){
                                <button id="btnAdd" type="button" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                @}
                                <button id="btnExp" type="button" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </form>
                    <table class="layui-table" id="archiveBoxTable" lay-filter="archiveBoxTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/archiveBox/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    @}
    @if(shiro.hasPermission("/archiveBox/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
</script>
<#dic_templet id="archive_year" dic="ARCHIVE_YEAR" value="d.ssnd"/>
<#dic_templet id="archive_type" dic="ARCHIVE_TYPE" value="d.ssdalxid"/>
<#dic_templet id="sl" dic="YESNO" value="d.sl"/>

@}